package com.rongc.client.freight.business.carrier.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;

import org.json.JSONObject;


/*
*  获取车源详情
* */

public class ConveyanceDetailApi extends AbsRequest<ConveyanceDetailApi.ConveyanceDetailParams, JSONObject> {

    public ConveyanceDetailApi(ConveyanceDetailParams feedbackParams, Listener<JSONObject> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getConveyanceDetailUrl(), feedbackParams, listener, errorListener, JSONObject.class);
    }

    public static class ConveyanceDetailParams extends BaseParams {

        public ConveyanceDetailParams(String driverId,String trucksId) {
            put("driverId",driverId); // 车辆id
            put("trucksId",trucksId); // 车源id
        }
    }


}
